<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@include file="/jsp/common/head.jsp" %>
<div class="card-header d-flex justify-content-between">
    <div class="header-title">
        <h4 class="card-title">
            供货商信息编辑
        </h4>
    </div>
    <p style="color: red;">${message}</p>
</div>
<div class="card-body">
    <form action="<c:url value="/supplier?method=edit"/>" method="post">
        <div class="form-group" style="display: none">
            <label for="sid">编号</label>
            <input id="sid" name="sid" class="form-control" type="text" value="${supplier.sid}">
        </div>
        <div class="form-group">
            <label for="sname">供货商名称</label>
            <input id="sname" name="sname" required class="form-control" type="text" placeholder="请输入供货商名称"
                   value="${supplier.sname}">
        </div>
        <div class="form-group">
            <label for="contact">联系人</label>
            <input id="contact" name="contact" required class="form-control" type="text" placeholder="请输入联系人"
                   value="${supplier.contact}">
        </div>
        <div class="form-group">
            <label for="supply">供货产品</label>
            <input id="supply" name="supply" required class="form-control" type="text" placeholder="请输入供货产品"
                   value="${supplier.supply}">
        </div>
        <div class="form-group">
            <label for="phone1">电话1</label>
            <input id="phone1" name="phone1" required class="form-control" type="text" placeholder="请输入电话1"
                   value="${supplier.phone1}">
        </div>
        <div class="form-group">
            <label for="phone2">电话2</label>
            <input id="phone2" name="phone2" required class="form-control" type="text" placeholder="请输入电话2"
                   value="${supplier.phone2}">
        </div>
        <div class="form-group">
            <label for="reputation">信誉评价</label>
            <input id="reputation" name="reputation" required class="form-control" type="text" placeholder="请输入信誉评价"
                   value="${supplier.reputation}">
        </div>
        <div class="form-group">
            <label for="remark">备注</label>
            <textarea id="remark" name="remark" rows="3" class="form-control"
                      placeholder="请输入备注">${supplier.remark}</textarea>
        </div>
        <button class="btn btn-primary" type="submit">提交</button>
    </form>
</div>
<%@include file="/jsp/common/footer.jsp" %>
